import http from '@/uils/http'
//二级分类
export const getTopCategoryAPI = (id) => {
  return http({
    url:'/category',
    params:{
      id
    }
  })
}
//二级分类面包屑
export const getCategoryFilterAPI = (id) => {
  return http({
    url:'/category/sub/filter',
    params:{
      id
    }
  })
}
//二级分类商品列表
export const getSubCategoryAPI = (data) => {
  return http({
    url:'/category/goods/temporary',
    method:'POST',
    data
  })
}